@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import "./font/YouSheBiao/YouSheBiaoTiHei-2.css";

body {
    height: 100%;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    //font-family: "YouSheBiaoTiHei-2", Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
    font-family: Arial, sans-serif;
}

label {
    font-weight: 700;
}

html {
    height: 100%;
    box-sizing: border-box;
}

h1,h2,h3,h4,h5,h6,p{
    margin: 0;
}

#app {
    position: relative;
    height: 100%;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

a:focus,
a:active {
    outline: none;
}

a,
a:focus,
a:hover {
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

div:focus {
    outline: none;
}

.clearfix {
    &:after {
        visibility: hidden;
        display: block;
        font-size: 0;
        content: " ";
        clear: both;
        height: 0;
    }
}

button, input, optgroup, select, textarea{
    font-family: inherit;
}

// main-container global css
.app-container {
    position: relative;
    height: 100%;
    padding: 20px;
    background-color: #fff;
    box-sizing: border-box;
    overflow-y: scroll;
    overflow-x: hidden;
    box-shadow: 0 0 10px 0 rgba(0,0,0,0.06);
}
//表单内页，新增|修改 container
.app-form-container{
    height: 100%;
    display: flex;
    flex-direction: column;

    .el-form-item{
        margin: 18px 0;
    }

    .app-form-footer{
        margin-top: 14px;
        padding: 10px;
        display: flex;
        flex-shrink: 0;
        background-color: #fff;

        .btn{
            font-size: 24px;

            &.clear{
                border: none;
                background: none;
            }
            &.right{
                margin-left: auto;
            }
            &.left{
                margin-right: auto;
            }
        }
    }

    // 表单验证颜色改变
    .is-error{
        .upload-btn{
            border-color: #F56C6C !important;
        }
    }
}


.no-select {
    @include no-select
}

.starfield-canvas{
    z-index: -1;
}

//通用管理表格覆盖
    // 表内按钮
.table-btn{
    padding: 0 2px;
    border: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    [class*=" el-icon-"], [class^=el-icon-]{
        font-size: 16px;
    }
    & [class*=el-icon-]+span{
        margin-left: 0;
    }
    &:hover{
        border: none;
        background: none;
    }
}
    // 表格内输入框
.table-input{
    .el-input__inner {
        padding: 0;
        height: 30px;
        line-height: 30px;
        text-align: center;
    }
}
    //表内头像
.table-avatar{
    margin-right: 4px;
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    vertical-align: bottom;
}
    // 筛选条
.filter-container{
    margin-bottom: 20px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f6f6f6;
    .filter-btn{
        width: 100%;
        height: 40px;
        line-height: 40px;
        padding: 0;
        font-size: 22px;
        text-align: center;
        font-weight: 400;
        &-reset{
            border-color: #EEBA0A;
            background-color: #EEBA0A;
        }
    }
}

.table-img{
    width: 100%;
    padding-bottom: 100%;
    background-color: #aaa;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}
.tool-container {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    .tool-btn{
        min-width: 100px;
        height: 40px;
        line-height: 40px;
        padding: 0 6px;
        font-size: 16px;
        text-align: center;
        &-sub{
            background-color: #EEBA0A ;
            border-color: #EEBA0A ;
        }
        [class*=" el-icon-"],
        [class^=el-icon-]{
            margin-right: 2px;
        }
    }
    .right{
        margin-left: auto;
    }
    > *{
        margin-right: 10px;
    }
    .tool-tips{
        align-self: flex-end;
        color: #999;
        font-size: 14px;
        line-height: 1;
    }
}
//侧边栏表格通用覆盖
.slideform-mode{
    .table-container{
        position: relative;
        display: flex;
        .table-area{
            position: relative;
            width: 65%;
            flex-shrink: 0;
            z-index: 2;
        }
        .el-button--mini, .el-button--small{
            font-size: 16px;
        }
        .el-checkbox__inner{
            transform: scale(1.5);
        }

        .editform-area {
            position: relative;
            width: 35%;
            height: calc(100vh - 250px);
            margin-left: 46px;
            box-sizing: border-box;

            .editform-bg {
                position: absolute;
                width: 100%;
                top: 0;
                right: 0;

                .editform-bg-tit {
                    position: absolute;
                    right: 0;
                    top: 0;
                    font-size: 7.6vw;
                    color: #eeba0a;
                    line-height: .75;
                    white-space: nowrap;
                    transition: .3s;
                    opacity: .2;
                }

                .editform-bg-img{
                    margin-top: calc(7.5vw * .76);
                    display: block;
                    width: 100%;
                    margin-left: auto;
                    transition: .3s;
                }
                .editform-btn{
                    width: 150px;
                    position: absolute;
                    left: 0;
                    bottom: 36px;
                    font-size: 32px;
                }
            }
            .slide-form-area{
                width: 100%;
                height: 100%;
                position: absolute;
                left: 0;
                top: 0;
                display: flex;
                flex-direction: column;
                box-shadow: 0 2px 20px 0 rgba(23,48,225,0.12);
                z-index: 2;
                .slideForm-form{
                    position: relative;
                    width: 100%;
                    height: 100%;
                    padding: 17px 25px 0;
                    overflow-y: auto;
                }
                .slide-form-btn-box{
                    padding: 17px 25px;
                    width: 100%;
                    flex-shrink: 0;
                    box-sizing: border-box;
                }
                .slide-form-btn{
                    width: 100%;
                    font-size: 20px;
                }
                .el-form-item__label{
                    line-height: 1;
                    font-size: 20px;
                    font-weight: normal;
                }
                .el-input__inner{
                    background: none;
                    font-size: 18px;
                }
                .el-select{
                    width: 100%;
                }
                .el-cascader{
                    width: 100%;
                }
                .el-radio{
                    .el-radio__input{
                        vertical-align: initial;
                    }
                    .el-radio__label{
                        display: inline-block;
                        font-size: 22px;
                    }
                }
            }
            &.slide-form-show{
                .editform-bg{
                    //position: absolute;
                    .editform-bg-tit {
                        margin: 40px 0 50px 70px;
                        font-size: 6vw;
                        opacity: .1;
                    }
                    .editform-bg-img{
                        opacity: .12;
                        width: 75%;
                    }
                    .editform-btn{
                        display: none;
                    }
                }
            }
        }
    }
}

//富文本预览窗格
.tox .tox-dialog--width-lg{
    img{
        max-width: 100%;
        height: auto;
    }
}

@keyframes rotateRound {
    to{
        transform: rotate(360deg);
    }
}
